package no.ntnu.fp.exceptions;

public class XMLParsingException extends IllegalArgumentException {

	/**
	 * Default Serial
	 */
	private static final long serialVersionUID = 1L;
	private final String xml;
	
	public XMLParsingException(String s) {
		xml = s;
	}
	public String getXmlString(){
		return xml;
	}
	
	@Override
	public String getLocalizedMessage() {
		return String.format("XML parsing exception on string: %s\n", xml);
	}
}
